{% if competitor %}
<!--div>Prénom: {{competitor.name}}</div-->
<!--div>Nom: {{competitor.surname}}</div-->

    {% if competitor_form %}
        <form action="" method="post">
            <table>
            <tr><th>Number:</th> <td>{{competitor.number}} </td></tr>
            <!--tr><th>Name:</th> <td>{{competitor.name}} </td></tr>
            <tr><th>Surname:</th> <td>{{competitor.surname}} </td></tr>
            <tr><th>Category:</th> <td>{{competitor.category}} </td></tr-->
            {{ competitor_form.as_table}}
            <tr><th>Score:</th> <td>{{competitor.score}} </td></tr>

            </table>

            <input type="submit" value="OK">
        </form>
    {% endif %}

{% else %}
    <p>No Competitor found</p>
{% endif %}
{% if saved %}
    <div>Saved</div>
{% endif %}

